def district(key,keywords=None,subdistrict=1,page=1,offset=20,extensions="all",filter=None,callback=None,output="json"):
    url = "https://restapi.amap.com/v3/config/district?parameters"
    params = {
    "key":key,
    "keywords":keywords,
    "output":"json",
    "subdistrict":subdistrict,
    "page":page,
    "offset":offset,
    "extensions":extensions,
    "filter":filter,
    "callback":callback
}
    r=requests.get(url,params=params)
    district=r.json()
    return district